URL Parameter Passing

Passing calculated values in URLs

Description
This customization shows how to pass calculated values in URLs.
Variables
Table Control
Select the table control displaying the grand total field
Grand Total Field Control
Select a grand total field which you want to pass as URL parameter
Applies to
TableControl class
Code
 
''' 
''' Override the ModifyRedirectURL() to customize the URL 
''' 
Public Overrides Function ModifyRedirectUrl(ByVal redirectUrl As String, ByVal redirectArgument As String, ByVal bEncrypt As Boolean) As String

    ' If redirect URL does NOT contain paramter(s), for example, if redirect URL is equal to "../Products/AddProducts.aspx" then URL should look like this:
	redirectUrl = redirectUrl + "?Total=" + Me.${Grand Total Field Control}.Text    
	
	' If the URL already contains paramter(s)  for example, if redirect URL is equal to "../Products/EditProducts.aspx?Orders=1" then, your redirectURL should look like this:
	' redirectUrl = redirectUrl + "&Total=" + Me.${Grand Total Field Control}.Text    
    
    ' Return MyBase.ModifyRedirectUrl
    Return MyBase.ModifyRedirectUrl(redirectUrl, redirectArgument, bEncrypt) 
End Function
     

Terms of Service Privacy Statement